﻿// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com

// ReSharper disable CheckNamespace
// ReSharper disable CommentTypo
// ReSharper disable IdentifierTypo

/*
 * Ars Magna project, http://arsmagna.ru
 */

#region Using directives

using Microsoft.Win32.SafeHandles;

#endregion

#nullable enable

namespace AM.Win32.LongPath;

internal sealed class SafeFindHandle
    : SafeHandleZeroOrMinusOneIsInvalid
{
    internal SafeFindHandle()
        : base (true)
    {
        // пустое тело конструктора
    }

    protected override bool ReleaseHandle()
    {
        return NativeMethods.FindClose (base.handle);
    }
}
